layui.use(['form','jquery'],function(){
				var form = layui.form;
				var $ = layui.$;
				form.on("submit(formSubmit)",function(data){
					$.ajax({
						url : "doLogin",
						data : data.field,
						async : false,
						success : function(res) {
							if (res.success) {
								layer.msg('加载中', {
									icon : 16,
									shade : 0.01
								});
								if([[${url}]]){
									window.location = "."+[[${url}]];
								}else{
									window.location = "./";
								}
							} else {
								layer.msg(res.msg);
							} 
						},
						error : function(result) {
	
						}
					});
					return false;
				})
			});